import http from "@/utils/request";

// 新增打卡
export const addSign = (data) => {
    return http.post("/rsgl/sign/add", data);
};
// 获取打卡列表
export const getSignList = (data) => {
    return http.get("/rsgl/sign/list", data);
};
// 获取打卡详情
export const getSignById = (data) => {
    return http.get(`/rsgl/sign/get/${data}`);
};
// 删除打卡记录
export const deleteSignById = (data) => {
    return http.delete(`/rsgl/sign/delete/${data}`);
};
//更新打卡记录
export const updateSign = (data) => {
    return http.put("/rsgl/sign/update", data);
};

// 获取每月打卡统计
export const getMonthlyStatistics = () => {
    return http.get("/rsgl/sign/statistics");
};

